﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SweeperPrototype.Business
{
    public class RIC
    {
        private readonly string m_Value;
        public RIC(string value)
        {
            m_Value = value;
        }

        public string Value
        {
            get { return m_Value; }
        }

        public bool Equals(RIC other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return Equals(other.m_Value, m_Value);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof (RIC)) return false;
            return Equals((RIC) obj);
        }

        public override int GetHashCode()
        {
            return (m_Value != null ? m_Value.GetHashCode() : 0);
        }

        public override string ToString()
        {
            return m_Value;
        }
    }
}
